project(ipc)
cmake_minimum_required(VERSION 2.6)
find_package(wxWidgets COMPONENTS core base)
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -D_DEBUG" )
set(CMAKE_CXX_FLAGS_RELEASE "-O0 -g -DNDEBUG") 
set(SRCS ipc.cpp entry.cpp)
include_directories(${wxWidgets_INCLUDE_DIRS})
link_directories(${wxWidgets_LIBRARY_DIRS})
add_definitions(-DDLL_EXPORT) 
add_library(${PROJECT_NAME} SHARED ${SRCS})
target_link_libraries(${PROJECT_NAME} ${wxWidgets_LIBRARIES})
message(${wxWidgets_LIBRARIES})

